package com.yuanchu.goods.dto;

import com.yuanchu.common.validator.ValidationGroups;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description: 修改商品状态dto
 * @date: 2023-12-23 23:28
 */
@Data
@ToString
public class EditGoodsStateDto implements Serializable {
    @NotEmpty(message = "商品id不能为空", groups = {ValidationGroups.Delete.class})
    @NotEmpty(message = "商品id不能为空", groups = {ValidationGroups.Edit.class})
    private List<Integer> goodsIds;
    // @NotEmpty(message = "商品状态不能为空", groups = {ValidationGroups.Edit.class})
    private boolean state;
}
